package cn.song.utils;

import cn.song.domain.ResponseResult;

public class GirlUtils {

    public static ResponseResult success(Object object){
        ResponseResult result = new ResponseResult();
        result.setCode(200);
        result.setMessage("success");
        result.setT(object);
        return result;
    }

    public static ResponseResult success(){
        return success(null);
    }


    public static ResponseResult error(Integer code , String message){
        ResponseResult result = new ResponseResult();
        result.setCode(code);
        result.setMessage(message);
        return result;
    }
}
